{extend name="public:layout" /}
{block name="title"}用户操作日志列表{/block}
{block name="head"}
{:widget('common/Form/dateRes')}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-hand-o-right">用户操作日志列表</i>
                </li>
            </ol>
        </div>
        <div class="ibox-content">
            <ul class="nav nav-tabs" id="tab_search">
                <li {eq name="query.utype" value="system"}class="active"{/eq}><a href="{:url('index',['utype'=>system])}">总站点操作</a></li>
                <li {eq name="query.utype" value="site"}class="active"{/eq}><a href="{:url('index',['utype'=>site])}">店铺操作</a></li>
                <li {eq name="query.utype" value="operator"}class="active"{/eq}><a href="{:url('index',['utype'=>operator])}">店铺管理员</a></li>
                <li {eq name="query.utype" value="member"}class="active"{/eq}><a href="{:url('index',['utype'=>member])}">前台会员</a></li>
            </ul>
            <div class="toolbar">
                <div class="pull-left">
                    <form class="form-inline" method="post">
                        <div class="form-group">
                            <div class="input-group">
                                <input class="form-control" type="text" name="btime" value="{$query.btime}" placeholder="开始日期" onclick="laydate();" style="width: 150px;"/>
                            </div>
                            <div class="input-group">
                                <input class="form-control" type="text" name="etime" value="{$query.etime}" placeholder="结束日期" onclick="laydate();" style="width: 150px;"/>
                            </div>
                            <div class="input-group">
                                <input class="form-control" type="text" name="module" value="{$query.module}" placeholder="模型"style="width: 150px;"/>
                            </div>
                            <div class="input-group">
                                <input class="form-control" type="text" name="controller" value="{$query.controller}" placeholder="控制器"style="width: 150px;"/>
                            </div>
                            <div class="input-group">
                                <input class="form-control" type="text" name="action" value="{$query.action}" placeholder="操作方法"style="width: 150px;"/>
                            </div>
                            <div class="input-group">
                                <input class="form-control" type="text" name="username" value="{$query.username}" placeholder="需要检索的姓名"style="width: 150px;"/>
                            </div>
                            <button type="submit" class="btn btn-info">
                                <i class="fa fa-search"></i> 搜索
                            </button>
                            <a class="btn btn-white" href="{:url('index',['mid'=>$Request.param.mid])}">
                                <i class="fa fa-trash"></i> 清空
                            </a>
                        </div>
                    </form>
                </div>
                <div class="clearfix"></div>
            </div>
            <table class="table table-bordered" id="grid">
                <tr>
                    <th>#</th>
                    <th>用户类型</th>
                    <th>姓名</th>
                    <th>url</th>
                    <th>ip</th>
                    <th>访问时间</th>
                </tr>
                {volist name="list" id="vo"}
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.utype}</td>
                    <td>{$vo.username}</td>
                    <td>{$vo.url}</td>
                    <td>{$vo.ip}</td>
                    <td>{:date("Y-m-d H:i:s",$vo.create_time)}</td>
                </tr>
                {/volist}
            </table>
            <div class="page-bar">{$list->render()}</div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
{/block}
{block name="script"}
{/block}